<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <!-- 
      $confirm
   this.$confirm("提示内容","提示标题",{
     confirmButtonText:"确定按钮文本内容",
     cancelButtonText:"取消按钮文本内容",
     type:"info/success/error/warning" 
   }).then(()=>{
       //点击了确定后的处理
   }).catch(()=>{
       //点击了取消后的处理
   })       
        
         -->
      <el-button @click="exit"> 退出</el-button>
    </div>
    <script src="./vue.js"></script>
    <link rel="stylesheet" href="./ele.css" />
    <script src="./index.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {},
        methods: {
          exit() {
            this.$confirm("你确定退出该网站吗？", "温馨提示", {
              confirmButtonText: "确定退出",
              cancelButtonText: "点错了",
              type: "warning",
            })
              .then(() => {
                window.console.log("你点击了确定");
              })
              .catch(() => {
                window.console.log("你点击了取消");
              });
          },
        },
      });
    </script>
  </body>
</html>
